home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / ici / ici.cpi / struct.h < prev    next >
C/C++ Source or Header  |  1994-10-27  |  475b  |  25 lines

  1. #ifndef    ICI_STRUCT_H
  2. #define    ICI_STRUCT_H
  3.  
  4. #ifndef    ICI_OBJECT_H
  5. #include "object.h"
  6. #endif
  7.  
  8. struct slot
  9. {
  10.     object_t    *sl_key;
  11.     object_t    *sl_value;
  12. };
  13.  
  14. struct structs
  15. {
  16.     object_t    o_head;
  17.     int        s_nels;        /* How many slots used. */
  18.     int        s_nslots;    /* How many slots allocated. */
  19.     struct_t    *s_super;    /* The super of this struct, may be NULL. */
  20.     slot_t    *s_slots;
  21. };
  22. #define structof(o)    ((struct_t *)(o))
  23. #define    isstruct(o)    ((o)->o_tcode == TC_STRUCT)
  24. #endif
  25.